import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { ApLicenseService } from './ap_license.service';
import { CreateApLicenseDto } from './dto/create-ap_license.dto';
import { UpdateApLicenseDto } from './dto/update-ap_license.dto';

@Controller('ap/license')
export class ApLicenseController {
  constructor(private readonly apLicenseService: ApLicenseService) {}

   //激活查询
   @Post('/check_active')
   check_active() {
   return this.apLicenseService.check_active()
  }


  //证书认证
  @Post('/active')
  active(@Body('fileName') fileName: any) {
    return this.apLicenseService.active(fileName)
  }

}
